class ChangeTableProducts < ActiveRecord::Migration
  def up
    add_column :products, :coupon_rate, :decimal
    add_column :products, :commission, :decimal
    add_column :products, :commission_rate, :decimal
    add_column :products, :commission_num, :decimal
    add_column :products, :image, :text
    add_column :products, :remark, :text
  end

  def down
    remove_column :products, :coupon_rate
    remove_column :products, :commission
    remove_column :products, :commission_rate
    remove_column :products, :commission_num
    remove_column :products, :remark
    remove_column :products, :image
  end
end
